use "/Users/firatbilgel/Documents/Journal articles/Identification/lawc_impossible.dta", clear

******* Impossible regressions
		***** Regression adjustment (RA)
teffects ra (Y_iv X1 U3 U4, logit) (Treatment)
teffects ra (Y_iv X1 U3 U4, logit) (Treatment), atet
		***** Inverse probability weigthing (IPW)
teffects ipw (Y_iv) (Treatment X1 U3 U4)
teffects ipw (Y_iv) (Treatment X1 U3 U4), atet
		***** inverse-probability-weighted regression adjustment (IPWRA)
teffects ipwra (Y_iv X1 U3 U4, logit) (Treatment X1  U3 U4)
teffects ipwra (Y_iv X1 U3 U4, logit) (Treatment X1  U3 U4), atet
		***** nearest-neighbor matching (NNM)
teffects nnmatch (Y_iv X1 U3 U4) (Treatment)
teffects nnmatch (Y_iv X1 U3 U4) (Treatment), atet
		***** propensity-score matching	(PSM)	
teffects psmatch (Y_iv) (Treatment X1  U3 U4)
teffects psmatch (Y_iv) (Treatment X1  U3 U4), atet

		***** Regression adjustment (with X2 additionally)
teffects ra (Y_iv X1 U3 U4 X2, logit) (Treatment)
teffects ra (Y_iv X1 U3 U4 X2, logit) (Treatment), atet
		***** Inverse probability weigthing
teffects ipw (Y_iv) (Treatment X1 U3 U4 X2), osample(overlap)
drop if overlap==1		
teffects ipw (Y_iv) (Treatment X1 U3 U4 X2)
teffects ipw (Y_iv) (Treatment X1 U3 U4 X2), atet
		***** inverse-probability-weighted regression adjustment
teffects ipwra (Y_iv X1 U3 U4 X2, logit) (Treatment X1  U3 U4 X2)
teffects ipwra (Y_iv X1 U3 U4 X2, logit) (Treatment X1  U3 U4 X2), atet
		***** nearest-neighbor matching
teffects nnmatch (Y_iv X1 U3 U4 X2) (Treatment)
teffects nnmatch (Y_iv X1 U3 U4 X2) (Treatment), atet
		***** propensity-score matching		
teffects psmatch (Y_iv) (Treatment X1  U3 U4 X2)
teffects psmatch (Y_iv) (Treatment X1  U3 U4 X2), atet
